<!DOCTYPE html>
<html>

	<head>
		<meta name="keywords" content="{$site_info.site_seo_keywords|default=''}"/>
		<meta name="description" content="{$site_info.site_seo_description|default=''}">
		<title>{$article.post_title}</title>
		<include file="public@head"/>

	</head>

	<body>
		<div class="pages">
			<include file="public@nav"/>

			<div class="content academic-con">
				<div class="inside-banner news-banner"></div>
				<!--资讯列表-->
				<div class="section">
					<div class="wrapper news-con clearfix">
						<div class="news-box left">
							<!--资讯详情-->

							<div class="news-title">
								<h2>{$article.post_title}</h2>
								<span class="date">{:date('Y-m-d H:i',$article.published_time)}</span>
							</div>
							<!--文章内容-->
							<div class="new-article">
								{$article.post_content}
							</div>
							<if condition="!empty($article['post_source'])">
								<div>
									<b>注：本文转载自{$article.post_source}，转载目的在于传递更多信息，并不代表本网赞同其观点和对其真实性负责。如有侵权行为，请联系我们，我们会及时删除。</b>
								</div>
							</if>
							<!--上下篇-->
							<div class="to-next-article clearfix">
								<php>
									//var_dump($prev_article);die();

									if(null ==$next_article['post_title']){
										$next_article['post_title'] = '已经是最后一篇文章了';
										$next_url = 'javascript:void(0)';
									}else{
										$next_url = cmf_url('portal/Article/index',array('id'=>$next_article['id'],'cid'=>$category['id']));
									}

									if(null ==$prev_article['post_title']){
										$prev_article['post_title'] = '第一篇文章';
										$prev_url='javascript:void(0)';
									}else{
										$prev_url=cmf_url('portal/Article/index',array('id'=>$prev_article['id'],'cid'=>$category['id']));
									}

								</php>
								<a class="left txt-overflow" href="{$prev_url}">上一篇 ：{$prev_article.post_title}</a>
								<a class="right txt-overflow" href="{$next_url}">下一篇 ：{$next_article.post_title}</a>
							</div>
							<!--上下篇END-->

							<!--资讯详情END-->


						</div>
						<div class="news-recommend right">
							<div class="news-serach">
								<form action="{:cmf_url('portal/Search/index')}" method="post" class="news-serach-form">
									<input type="text" name="keyword"  value="{:input('param.keyword','')}" placeholder="请输入关键词">
									<button type="submit" class="search-btn"></button>
								</form>
							</div>

							<p class="title">重要公告</p>
							<php>
								$hot_articles=[];
							</php>
							<ul class="recommend-infos">
								<portal:articles limit="5" order="post.post_hits DESC" relation="categories"
									categoryIds="$category.id">

									<php>$top=$key<3?"top3":"";</php>
									<li class="{$top}">
										<a href="{:cmf_url('portal/Article/index',array('id'=>$vo['id']))}">
											<i class="sort-num">{$key+1}</i>
											<div class="recommend-txt">
												<h4 class="txt-overflow">{$vo.post_title}</h4>
												<span>2017-12-09</span>
											</div>
										</a>
									</li>
								</portal:articles>
							</ul>
						</div>
					</div>


				</div>

			</div>
		</div>
		<!--主体END-->
		<include file="public@footer"/>

		</div>

		<include file="public@scripts"/>

		<script>
			$(function () {
				var layer=null;
				layui.use('layer', function(){
					layer=layui.layer;
				});

				var $goal=$(".news-recommend"),
					goalH=$goal.offset().top-90;
				$(window).scroll(function () {
					var scrollTop = $(this).scrollTop();
					(scrollTop >= goalH) ? ($goal.addClass('news-recommend-fixed')) : ($goal.removeClass('news-recommend-fixed'));
				});

			});

		</script>
	</body>

</html>